﻿using System;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page 
{
    protected string action;

    public _Default()
    {
        

    }

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            this.action = Request.QueryString["a"];
            Response.Write(this.action);
            if ((Session["username"] != null) && (Session["username"].ToString() != ""))
            {

            }
            else
            {
                Response.Redirect("login.aspx");
            }
        }
    }

    public string GetMenuString()
    {
        return MenuDAL.Current.CreateHTML();
    }

    public string GetTreeJSON()
    {
        return ExtTree.Current.CreateExtTreeJSON();
    }

    public void logout()
    {

    }
}
